#include "threshold.h"
#include <stdio.h>

threshold::threshold(QWidget *parent)
	: QDialog(parent)
{
	setupUi(this);

	//mainWindow = new QtGimp(parent);
	mainWindow = (QtGimp*) parent;
	

	//connect(widthSpinBox, SIGNAL(valueChanged(int)), this, SLOT(on_widthSpinBox_valueChanged(int)));
	bool connectOK = connect(thresholdSlider, SIGNAL(valueChanged(int)), mainWindow, SLOT(on_threshold_changed(int)));
	

	if(connectOK)
	{
		this->setWindowTitle("Connection erfolgreich");
	}

	//printf("TEST");
	

}

threshold::~threshold()
{

}